package com.yeyks.order.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单明细表
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OrderBill对象", description="订单明细表")
public class OrderBill implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "入住日期")
    @TableField("in_date")
    private Date inDate;

    @ApiModelProperty(value = "原价")
    @TableField("origin_price")
    private Integer originPrice;

    @ApiModelProperty(value = "销售价")
    @TableField("sale_price")
    private Integer salePrice;

    @ApiModelProperty(value = "成交价(抢单价)")
    @TableField("deal_price")
    private Integer dealPrice;

    @ApiModelProperty(value = "抢单底价")
    @TableField("bottom_price")
    private Integer bottomPrice;

    @ApiModelProperty(value = "房间数")
    @TableField("room_count")
    private Integer roomCount;

    @ApiModelProperty(value = "酒店快照")
    @TableField("hotel_extra_info")
    private String hotelExtraInfo;

    @ApiModelProperty(value = "房间快照")
    @TableField("room_extra_info")
    private String roomExtraInfo;

    @ApiModelProperty(value = "房态快照")
    @TableField("room_calendar_info")
    private String roomCalendarInfo;

    @ApiModelProperty(value = "创建时间")
    @TableField("gmt_create")
    private Date gmtCreate;


    public static final String ID = "id";

    public static final String ORDER_NO = "order_no";

    public static final String IN_DATE = "in_date";

    public static final String ORIGIN_PRICE = "origin_price";

    public static final String SALE_PRICE = "sale_price";

    public static final String DEAL_PRICE = "deal_price";

    public static final String BOTTOM_PRICE = "bottom_price";

    public static final String ROOM_COUNT = "room_count";

    public static final String HOTEL_EXTRA_INFO = "hotel_extra_info";

    public static final String ROOM_EXTRA_INFO = "room_extra_info";

    public static final String ROOM_CALENDAR_INFO = "room_calendar_info";

    public static final String GMT_CREATE = "gmt_create";

}
